package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class PtrackingUrl  implements Sequenceable, Serializable {

    @SerializedName("baseUrl")
    private String baseUrl;


    public static final Sequenceable.Producer<PtrackingUrl> CREATOR = new Producer<PtrackingUrl>() {
        @Override
        public PtrackingUrl createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            PtrackingUrl ptrackingUrl = new PtrackingUrl();
            ptrackingUrl.unmarshalling(parcel);
            return ptrackingUrl;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.baseUrl);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.baseUrl=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "PtrackingUrl{" +
                "baseUrl='" + baseUrl + '\'' +
                '}';
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
}
